<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\OrderInvoice
 *
 * @property int $id
 * @property int $order_id
 * @property int $invoice_type
 * @property int $title_type
 * @property string $title
 * @property string $tax_no
 * @property string $remark
 * @property-read \App\Models\Order $order
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderInvoice whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderInvoice whereInvoiceType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderInvoice whereOrderId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderInvoice whereRemark($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderInvoice whereTaxNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderInvoice whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\OrderInvoice whereTitleType($value)
 * @mixin \Eloquent
 */
class OrderInvoice extends Model
{
    protected $table = 'order_invoice';
    protected $primaryKey = 'id';
    protected $guarded = [];

    public $timestamps = false;

    public function order()
    {
        return $this->belongsTo(Order::class, 'order_id', 'order_id');
    }
}
